package com.fengye.algorithms.huawei;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * https://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62?tpId=37&tqId=21328&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D37&difficulty=undefined&judgeStatus=undefined&tags=&title=
 * @Author fengye
 * @Date 2023/4/7 11:36
 **/
public class Jifujunzheng2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int c1 = 0;
        int c2 = 0;
        int sum = 0;
        while (in.hasNext()) {
            int n = in.nextInt();

            if (n < 0) {
                c1++;
            } else {
                c2++;
                sum += n;
            }
        }

        System.out.println(c1);

        if(sum!=0) {
            Double d = (double)sum/c2;
            BigDecimal bigDecimal = new BigDecimal(d);
            System.out.println(bigDecimal.setScale(1,BigDecimal.ROUND_HALF_EVEN));
        } else {
            System.out.println("0.0");
        }
    }
}
